import { createStore } from 'vuex'
import {getuser,setuser} from "@/store/userinfo"
export default createStore({
  state: {
    _g_ : {},
    userinfo : {}
  },
  mutations: {
    getUserInfo(state){
      state.userinfo = getuser()
    },
    setUserInfo(state,userinfo){
      state.userinfo = setuser(userinfo)
    }
  },
  actions: {
  },
  modules: {
  }
})
